package com.applcn.shop.repo.entity;

import com.applcn.core.base.BaseEntity;
import lombok.Data;

/**
 * com.applcn.shop.repo.entity
 * Description:
 *
 * @author: 大妖怪
 * @date: 2020-01-19 20:29
 */
@Data
public class CategoryEntity extends BaseEntity {

    private static final long serialVersionUID = -5666932113169058394L;

    /**
     * 层级 0、1、2、3 ...
     */
    private Integer level;

    /**
     * 上级id 若为最上级类目，上级id为0id
     */
    private Long parentId;

    /**
     * 类目名称
     */
    private String name;

    /**
     * 排序值
     */
    private Integer sort;
}
